package com.qing.gui.frame;

import java.awt.*;

/**
 * 画笔
 */
public class MyPaint extends Frame {
   public void loadPaint(){
       setVisible(true);
       setBounds(200,200,500,500);
   }

    @Override
    public void paint(Graphics g) {
        super.paint(g);

        g.setColor(Color.PINK);
        //画一个空心的圆⚪
        // g.drawOval(200,200,200,200);
        //画一个实心的圆⚪
        // g.fillOval(200,200,200,200);
        //画一个实心的矩形
        g.fillRect(200,200,200,200);

   }

    public static void main(String[] args) {
        MyPaint myPaint = new MyPaint();
        myPaint.loadPaint();
    }
}
